import myAxios from "../plugins/myAxios";
import {Toast} from "vant";


export const getUserList = async () => {
    const res = await myAxios.get('/user/current');
    let data = res.data;
    if (data.code === 0) {
        Toast.success('获取用户信息成功');
    } else {
        Toast.fail('获取用户信息失败')
    }
    return data.data;
}